<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button>
        提交
    </button>

    <script>
        let btn = document.querySelector('button')

        // 节流函数实现
        function throttle(func, wait) {
         let pre = Date.now()
            return function() {
                let now = Date.now()
                if(now - pre >= wait){
                    func()
                    pre = now
                } 

            }
        }

        // 按钮点击处理函数
        function submitHandler() {
            console.log('按钮被点击，执行提交操作');
        }

        btn.addEventListener('click', throttle(submitHandler, 1000));
    </script>    
</body>
</html>